package com.sinosoft.ebusiness.domain.elementManage;
// 采用工具 Hibernate Tools 3.2.4.GA (sinosoft version) 生成，请勿手工修改。

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.sinosoft.ebusiness.domain.elementManage.GeGroupviewItemId;
import com.sinosoft.ebusiness.domain.elementManage.GePageViewgroup;
import com.sinosoft.ebusiness.domain.elementManage.GePageViewitem;


/**
 * POJO类GeGroupviewItem
 */
@Entity
@Table(name = "GE_GROUPVIEW_ITEM")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class GeGroupviewItem implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3647731002065789779L;

	/** 属性ID */
	private GeGroupviewItemId id;

	/** 属性gePageViewgroup */
	private GePageViewgroup gePageViewgroup;

	/** 属性gePageViewitem */
	private GePageViewitem gePageViewitem;

	/** 属性显示序号 */
	private String displayNo;

	/**
	 * 类GeGroupviewItem的默认构造方法
	 */
	public GeGroupviewItem() {
	}

	/**
	 * 属性ID的getter方法
	 */
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "groupcode", column = @Column(name = "GROUPCODE")),
			@AttributeOverride(name = "itemCode", column = @Column(name = "ITEMCODE")) })
	public GeGroupviewItemId getId() {
		return this.id;
	}

	/**
	 * 属性ID的setter方法
	 */
	public void setId(GeGroupviewItemId id) {
		this.id = id;
	}

	/**
	 * 属性gePageViewgroup的getter方法
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "GROUPCODE", nullable = false, insertable = false, updatable = false)
	@JSONField(serialize=false)
	@JsonIgnore
	@JsonBackReference
	public GePageViewgroup getGePageViewgroup() {
		return this.gePageViewgroup;
	}

	/**
	 * 属性gePageViewgroup的setter方法
	 */
	public void setGePageViewgroup(GePageViewgroup gePageViewgroup) {
		this.gePageViewgroup = gePageViewgroup;
	}

	/**
	 * 属性gePageViewitem的getter方法
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ITEMCODE", nullable = false, insertable = false, updatable = false)
	@JsonBackReference
	public GePageViewitem getGePageViewitem() {
		return this.gePageViewitem;
	}

	/**
	 * 属性gePageViewitem的setter方法
	 */
	public void setGePageViewitem(GePageViewitem gePageViewitem) {
		this.gePageViewitem = gePageViewitem;
	}

	/**
	 * 属性显示序号的getter方法
	 */

	@Column(name = "DISPLAYNO")
	public String getDisplayNo() {
		return this.displayNo;
	}

	/**
	 * 属性显示序号的setter方法
	 */
	public void setDisplayNo(String displayNo) {
		this.displayNo = displayNo;
	}

}
